package Utils.Gameplay;

import datatypes.Datatypes.tableType;

/**
 * Answer represents an answer as it represented by the query response
 * 
 * @author Micha
 * 
 */
public class Answer {

	/**
	 * the type identification
	 */
	private String answerTypeId;

	/**
	 * the result answer
	 * 
	 * i.e answerTypeId value to be identified by the user, for example:
	 * 
	 * answerTypeId: 123, answer: Brad Bitt
	 */
	private String answer;

	public Answer(String typeID, String answer) {
		this.answerTypeId = typeID;
		this.answer = answer;
	}

	public String getTypeId() {
		return answerTypeId;
	}

	public void setTypeId(String answerTypeId) {
		this.answerTypeId = answerTypeId;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();

		sb.append("answer type id: " + answerTypeId.toString() + "\n");
		sb.append("answer: " + answer + "\n");

		return sb.toString();
	}
}
